Audit remediation: modernize codebase and improve security#12
Merged
Conversation
- Remove committed artifacts from version control - quantcli.log, article_processor.log, articles.json, output.html - Enhance .gitignore with comprehensive patterns - Secrets, coverage, type checking, IDE files - Add GitHub Actions CI workflow (.github/workflows/ci.yml) - Lint with black and ruff - Type check with mypy - Test on Python 3.10, 3.11, 3.12 - Security scan with pip-audit - Secret scanning with TruffleHog - Add test suite foundation (tests/) - Pytest fixtures for mocking OpenAI client and config - Unit tests for processor classes (TextPreprocessor, CodeValidator, etc.) - Unit tests for LLMHandler - Enhance pyproject.toml with additional tooling - Add pytest-cov, pytest-mock, pre-commit, pip-audit to dev deps - Configure ruff lint rules including security checks - Configure mypy with ignore patterns for third-party libs - Add pytest and coverage configuration
5d84d8f to
5989708
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses all findings from the gamma branch audit:
Files Changed (15 files, +1041/-345)
processor.py,utils.pyto client patternpyproject.toml.github/workflows/ci.ymltests/directoryTest plan
pytest tests/ -vruff check .